import { $t } from "/@/plugins/i18n";
import type { RouteConfigsTable } from "/#/index";
const Layout = () => import("/@/layout/index.vue");

const psiRoute: RouteConfigsTable = {
  path: "/psi",
  name: "psi",
  component: Layout,
  meta: {
    icon: "ep-share",
    title: '进销存',
    rank: 2
  },
  children: [
    {
      path: '/psi/inventory',
      name: 'inventory',
      component: () => import('./inventory/index.vue'),
      meta: {
        title: '库存'
      }
    },
    {
      path: '/psi/circulate/in',
      name: 'circulate-in',
      component: () => import('./circulate/in/index.vue'),
      meta: {
        title: '入库单'
      }
    },
    {
      path: '/psi/circulate/out',
      name: 'circulate-out',
      component: () => import('./circulate/out/index.vue'),
      meta: {
        title: '出库单'
      }
    },
    {
      path: '/psi/warehouse',
      name: 'warehouse',
      component: () => import('./warehouse/index.vue'),
      meta: {
        title: '仓库'
      }
    },
    {
      path: '/psi/material',
      name: 'material',
      component: () => import('./material/index.vue'),
      meta: {
        title: '物料'
      }
    },
  ]
};

export default psiRoute;
